package com.wanxi.demo;

public class FlyDemo {
    public static void main(String[] args) {
        userFly(new Flyable() {
            @Override
            public void fly(String s) {
                System.out.println(s);
            }
        });
//        userFly((s)-> System.out.println(s));
        userFly(s-> System.out.println(s));
//        userFly(System.out::println);
    }
    static void userFly(Flyable f){
        f.fly("aaa");
    }
}
